/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.program1.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.program1.program1.program1;
import za.ac.cput.program1.program1.impl.program1Impl;
import za.ac.cput.program1.program1.impl.ImprovedProgram1Impl;
/**
 *
 * @author Dwayne
 */
@Configurable
public class AppConfig 
{
    @Bean(name = "oldProg")
    public program1 program1() 
    {
        return new program1Impl();
    }

    @Bean
    public program1 newProg() 
    {
        return new program1Impl();
    }

    @Bean(name = "prog")
    public program1 ImprovedProgram1() 
    {
        return new ImprovedProgram1Impl();
    }    
}
